from django.conf.urls.defaults import *

url_args = ['simcat.views',
            (r'^api/$', 'elements_index'),
            (r'^api/(?P<element>\w+)/$', 'collection_request'),
            (r'^api/(?P<element>\w+)/(?P<id>\d+)/$', 'object_request'),
            (r'^api/(?P<element>\w+)/(?P<short_name>\w+)/$', 'object_request_by_name'),
            ]

urlpatterns = patterns(*url_args)
